<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <style>
        .form-container {
            max-width: 500px;
            margin: 2rem auto;
            padding: 2rem;
            background: white;
            border-radius: 0.5rem;
            box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
        }
        .form-title {
            border-bottom: 2px solid #eee;
            padding-bottom: 1rem;
            margin-bottom: 1.5rem;
        }
    </style>
</head>
<body class="bg-light">
<div class="container">
    <div class="form-container">
        <h3 class="form-title text-center mb-4">
            <i class="bi bi-person-plus me-2"></i>添加用户
        </h3>
        <form th:action="@{/insert}" method="post">
            <div class="mb-3">
                <label class="form-label">账号</label>
                <input type="text" name="account" class="form-control" required>
            </div>

            <div class="mb-3">
                <label class="form-label">姓名</label>
                <input type="text" name="realName" class="form-control" required>
            </div>

            <div class="mb-4">
                <label class="form-label">密码</label>
                <input type="password" name="password" class="form-control" required>
            </div>

            <div class="mb-5">
                <label class="form-label">手机号</label>
                <input type="text" name="phone" class="form-control" required>
            </div>

            <div class="mb-5">
                <label class="form-label">性别</label>
                <select name="sex" class="form-select" required>
                    <option value="">请选择</option>
                    <option value="1">男</option>
                    <option value="2">女</option>
                    <option value="3">不详</option>
                </select>

            <div class="d-grid gap-2">
                <button type="submit" class="btn btn-primary">
                    <i class="bi bi-save me-2"></i>提交添加
                </button>
            </div>


        </form>
    </div>
</div>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>